/*
 *    Copyright (c) 2020-2025, sunlei All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Author: sunlei (daizile@126.com) 爱帮科技
 * 编程题答题记录表
 */
/*
{
    page:{
        current:1, //当前页数
        size:10   //每页长度
    },
    cond:{ //条件
        eq:{ // 多条件对象
                        id,//Integer
                        unitName,//String 编程器名称
                        examId,//Integer 试卷ID
                        userId,//Long 用户ID
                        signupId,//Integer 团队ID
                        matchId,//Integer 赛项ID
                        sheduleId,//Integer 赛程ID
                        zoneId,//Integer 赛区ID
                        gradeId,//Integer 组别ID
                        startTime,//LocalDateTime 答题开始时间
                        endTime,//LocalDateTime 答题结束时间
                        createTime,//LocalDateTime 数据创建时间
                        ischeck,//Integer 0正确  1 不正确
                        score,//Integer 成绩
                        file,//String 作品文件链接
                        isDel,//Integer 0:正常1:删除
                    }
    }
}
 */
// 分页查询
function ProgramExamRecordPageList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programexamrecord/pagequery","post",query,SuccessFunc,FailedFunc);
}
// 列表查询
function ProgramExamRecordqueryList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programexamrecord/queryList","post",query,SuccessFunc,FailedFunc);
}
// 插入数据
function ProgramExamRecordaddObj(obj,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programexamrecord/save", "post", obj,SuccessFunc,FailedFunc)
}
// 主键获取数据
function ProgramExamRecordgetObj(id,SuccessFunc,FailedFunc){
    slAjax("/abkj-api-match-provider/programexamrecord/"+id,"get",null,SuccessFunc,FailedFunc);
}

/**
 * 主键更新
 */
function ProgramExamRecordupdateById(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/programexamrecord/updateById","post",query,SuccessFunc,FailedFunc);
}
/**
 * 多条件 更新
 */
function ProgramExamRecordupdateByMulCond(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/programexamrecord/updateByMulCond","post",query,SuccessFunc,FailedFunc);
}
// 主键删除数据
function ProgramExamRecorddelObj(id,SuccessFunc,FailedFunc) {
  slAjax("/abkj-api-match-provider/programexamrecord/delete/"+id,"get",{},SuccessFunc,FailedFunc);
}
function getProgramExamRecordList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/matchWorkExt/getProgramExamRecordList","post",query,SuccessFunc,FailedFunc);
}
